package com.wmm.test;

import com.wmm.bean.Classes;
import com.wmm.service.ClassesService;

import java.util.List;

public class ClassesDemo {

    public static void main(String[] args) {

        ClassesService classesService = new ClassesService();

        Classes classes =  new Classes("1001","高一一班",
                "高一","李老师","好好学习",10);

        boolean b = classesService.addClassesServer(classes);

        System.out.println(b);

        List<Classes> classes1 = classesService.queryClassesServer("1001", null);
        for(Classes c : classes1){
            System.out.println(c.toString());
        }

//        boolean b1 = classesService.deleteClassesServer("1001");
//        System.out.println(b1);
    }
}
